package com.foreverwin.mes.production.service;


import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.exception.BusinessException;
import com.foreverwin.mes.production.model.Station;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 岗位 服务类
 * </p>
 *
 * @author syngna
 * @since 2018-11-28
 */
public interface StationService extends IService<Station> {

    /**
     * 查询所有的岗位
     *
     * @param site
     * @return
     */
    List<Station> selectList(String site);

    /**
     * 查询岗位
     *
     * @param station
     * @return
     */
    Station getStation(String site, String station);

    /**
     * 保存岗位主数据
     * 保存岗位已分配的证明
     * 保存岗位已分配的设备
     *
     * @param site
     * @param station
     * @param certificationList
     * @param resourceList
     * @return
     */
    void stationSave(String site, String user, String modifiedDateTime, Station station, List<Map> certificationList, List<Map> resourceList) throws BusinessException;

    /**
     * 删除岗位以及分配的证明
     *
     * @return
     */
    int stationDelete(String site, String station) throws BusinessException;
}